package com.liusuai.yixian.user;

import com.alibaba.fastjson.JSONObject;
import com.liusuai.yixian.domain.ResultBean;
import com.liusuai.yixian.login.LoginService;
import com.liusuai.yixian.login.RegestService;
import com.liusuai.yixian.login.UserBean;
import com.liusuai.yixian.login.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;


@RestController
public class UserControler {

    @Autowired
    private UserService userService;


    @ResponseBody
    @RequestMapping(value = "/getallusers"
            , method = RequestMethod.GET
            , produces = "application/json;charset=UTF-8")
    public ResultBean getallusers(HttpServletRequest request) {


        return userService.selectAllUsers();
    }

}

